const jwt = require('jsonwebtoken')
//密钥
const JWT_STRING = 'webshow-clinic'
function createJWT(info, timeout) {
  return jwt.sign(info, JWT_STRING, {
    expiresIn: timeout
  })
}
module.exports = createJWT
